package com.gupaoedu.vip.pattern.singleton.lazy;

/**
 * Created by Administrator on 2018/3/18.
 */
public class LazyTwo {

    private static LazyTwo lazyTwo = null;

    /**
     * 线程安全，但是执行效率不高
     * @return
     */

    public static synchronized LazyTwo getInstance(){
        if(null == lazyTwo){
            lazyTwo = new LazyTwo();
        }
        return lazyTwo;
    }
}
